﻿namespace PokerCards
{
    internal class CardSuitCompare : System.Collections.IComparer
    {
        public int Compare(object x, object y)
        {
            Card c1 = (Card)x;
            Card c2 = (Card)y;

            if (c1.suit > c2.suit)
                return -1;
            else if (c1.suit < c2.suit)
                return 1;
            else
                return 0;
        }
    }
}
